﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

namespace AUV5.Model
{
    /// <summary>
    /// 功能：     实体类 ContactList (联系人及最后一次联系记录) 
    /// 作者：     lwl
    /// 日期：     2011/11/22
    /// 修改日期： 
    /// 修改人：
    /// 修改内容：
    /// </summary>
    [Serializable]
    public class ContactList
    {
        public ContactList()
        {

        }

        #region Model

        private string _contactid;
        private string _userid;
        private string _contactuserid;
        private string _firstmessage;
        private string _latestmessage;
        private int _isdel;
        private int _state;
        private DateTime _createdate = DateTime.Parse("1900-1-1");
        private DateTime _updatedate = DateTime.Parse("1900-1-1");
        private DateTime _begindate = DateTime.Parse("1900-1-1");
        private DateTime _enddate = DateTime.Parse("1900-1-1");

        /// <summary>
        /// 编号
        /// </summary>
        public string ContactID
        {
            get { return _contactid; }
            set { _contactid = value; }
        }
        /// <summary>
        /// 当前登录用户
        /// </summary>
        public string UserID
        {
            get { return _userid; }
            set { _userid = value; }
        }
        /// <summary>
        /// 联系人ID
        /// </summary>
        public string ContactUserID
        {
            get { return _contactuserid; }
            set { _contactuserid = value; }
        }
        //联系人用户名
        public string ContactUserName { get; set; }

        /// <summary>
        /// 第一次联系记录
        /// </summary>
        public string FirstMessage
        {
            get { return _firstmessage; }
            set { _firstmessage = value; }
        }
        /// <summary>
        /// 第一条消息记录
        /// </summary>
        public Message FirstRecord { get; set; }

        /// <summary>
        /// 最后一次联系记录
        /// </summary>
        public string LatestMessage
        {
            get { return _latestmessage; }
            set { _latestmessage = value; }
        }
        /// <summary>
        /// 最新联系记录
        /// </summary>
        public Message LatestRecord { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public int IsDel
        {
            get { return _isdel; }
            set { _isdel = value; }
        }
        /// <summary>
        /// 状态
        /// </summary>
        public int State
        {
            get { return _state; }
            set { _state = value; }
        }
        /// <summary>
        /// 创建时间 
        /// </summary>
        public DateTime CreateDate
        {
            get { return _createdate; }
            set { _createdate = value; }
        }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UpdateDate
        {
            get { return _updatedate; }
            set { _updatedate = value; }
        }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime BeginDate
        {
            get { return _begindate; }
            set { _begindate = value; }
        }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime EndDate
        {
            get { return _enddate; }
            set { _enddate = value; }
        }

        #endregion Model
    }
}
